fb40cb3e7eb9c68610cb1bb7db84fdd409fe4559,src/protocol/tcp/org/apache/jmeter/protocol/tcp/sampler/TCPSampler.java,TCPSampler,getSocket,#,121
Before Change
// Not in cache, so create new one and cache it
try {
con = new Socket(getServer(), getPort());
con.setSoTimeout(getTimeout());
con.setTcpNoDelay(getNoDelay());
After Change
private Socket getSocket() {
// Is this the first call? If so, set up the socket details
if (hashKey == null){
hostName = getServer();
portNumber = getPort();
hashKey=hostName + ":" + portNumber;
log.debug("Initialising socket "+hashKey);